package 剑指offer;

/**
 * Created by yang on 2016/8/24.
 */
public class ArrayReverse {
    public int minNumberInRotateArray(int [] array) {

        int min = 0;
        int len = array.length;
        for(int i=0;i<len;i++){
            if(array[i] > array[i+1]){
                min = array[i+1];
                break;
            }
        }
        return min;
    }
}
